package com.cc.feign;


import com.cc.entity.User;
import com.cc.fallback.UserFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-server", fallback = UserFeignFallBack.class)
public interface UserFeign {
    @RequestMapping("/login")
    public User login(@RequestParam("username") String username, @RequestParam("password") String password);



}
